let num:number=123
console.log(num);

let user:string="樊锦涛"

let flag:boolean=false;

let a:null=null;
let b:undefined=undefined;

//数组的两种表示方式
let arr:number[]= [1,2,3];
let arr1:string[]= ['a','b','c'];

let arr2:Array<number>=[1,2,3];
let arr3:Array<string>=['a','b','c'];

//元组
let x:[number,string,boolean]=[1,'a',true]

//枚举
enum Color{
    green,
    blue=7,
    red
}
let c:Color = Color.red
console.log(c);

//对象
//定义对象的接口模型
interface Person{
    name:string,
    age:number,
    flag?:boolean
}
let obj:Person={
    name:'赵庆然',
    age:18,
    flag:true
}
let objj:Person={
    name:'张三',
    age:88,
}